@blue: #194783;
@lightBlue: #316dbc;
@headerBlue: #193d84;
@headerHeight: 96px;

@font-face {font-family: 'iconfont';
  src: url('../fonts/iconfont.eot'); /* IE9*/
  src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('../fonts/iconfont.woff') format('woff'), /* chrome、firefox */
  url('../fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
  url('../fonts/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family:"iconfont" !important;
  font-size:16px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

.icon-user:before { content: "\e60d"; }
.icon-password:before { content: "\e60b"; }
.icon-check:before { content: "\e625"; }
.icon-check1:before { content: "\e6d3"; }
.icon-arrowdown:before { content: "\343e"; }
.icon-arrowright-t:before { content: "\e62c"; }
.icon-arrowright:before { content: "\e612"; }
.iconfont.icon-* {
  margin-right: 5px;
}

.bg-image(@url) {
  background: url(@url);
  filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
  -moz-background-size:100% 100%;
  -webkit-background-size:100% 100%;
  background-size:100% 100%;
  -webkit-transition: bottom .3s ease-out 1.7s;
  -moz-transition: bottom .3s ease-out 1.7s;
  transition: bottom .3s ease-out 1.7s;
  background-size: cover;
  background-position: 50% 50%;
}

.center(@arg1,@arg2) {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: @arg1;
  -webkit-align-items: @arg1;
  -ms-flex-align: @arg1;
  align-items: @arg1;
  -webkit-box-pack: @arg1;
  -webkit-justify-content: @arg2;
  -ms-flex-pack: @arg1;
  justify-content: @arg2;
}

.flex-direction(@arg1,@arg2) {
  -webkit-flex-direction:@arg2;
  flex-direction:@arg2;
  -webkit-box-orient: @arg1;
  -webkit-flex-flow: @arg2;
  flex-flow: @arg2;
}

.flex(){ 
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;  
}


.flex-value(@num) {
  -webkit-box-flex: @num;
  -moz-box-flex: @num;
  -webkit-flex: @num;
  -ms-flex: @num;
  flex: @num; 
}
.position(@pos,@location) {
  -webkit-box-pack: @location; 
  -moz-box-pack: @location; 
  -ms-flex-pack: @location; 
  -webkit-justify-content: @pos;
  justify-content: @pos;
}

a {
    margin:0;
    padding:0;
    border:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    color: #1d1d1d;
    text-decoration: none;
}
img {
  height: 100%;
  width: 100%;
}
input, select {
    vertical-align:middle;
}

@media screen and (min-width: 1120px)  {
  .friend-link {
     width: 198px;
    }
}
@media screen and (min-width: 768px) and (max-width: 1120px)  {
  #foot {
    .foot-container {
    flex-wrap: wrap !important;
      .friend-link {
        width: 198px;
      }
    }
  }
  #box {
    #province-panel {
      li {
        margin-bottom: 3px !important;
      }
      span {
        line-height: 40px !important;
      }
    }
    #monitor-panel {
      .list-block {
        flex-wrap: wrap;
        margin-bottom: 5px !important;
        font-size: 16px !important;
      }
    }
  }
}
@media screen and (min-width:550px) and (max-width: 768px)  {
  #login-panel {
    display: none;
  }
  #monitor-panel, #province-panel {
    width: 45% !important;
  }
  #monitor-panel{
    .list-block {
      flex-wrap: wrap;
    }
  }
  #province-panel {
    li span {
      line-height: 42px !important;
    }
  }
}
@media screen and (max-width: 549px) {
   #box.HolyGrail-content {
    flex-wrap: wrap;
    .flex-direction(vertical,column);
    #login-panel {
      display: none;
    }
    #monitor-panel, #province-panel {
      width: 100% !important;
    }
    #province-panel {
      ul li div {
        webkit-justify-content: space-around;
        justify-content: space-around;
        .thumb-container {
          width: 70%;
          height: auto;
        }
        span {
          line-height: 100px;
        }
      }
    }
   }
   #footer {
    .logo {
      display: none;
    }
    .nav-container {
      max-width: 100% !important;
      .Grid{ width: 100% !important;};
    }
  }
}
main.HolyGrail-body {
  padding: 0;
  maring: 0;
}

#header {
  background-color: #fff;
  padding:0 4%;
  height: 125px;
  position: relative;
  .flex-direction(horizontal, row);
  .center(center, space-around);
  text-align: justify;
  .logo {
    width: 320px;
    height: 70px;
  }
  .user-block {
    background: #193d84;
    color: #fff;
    font-size: 14px;
    right: 30px;
    padding: 3px 10px;
    position: absolute;
<<<<<<< HEAD
=======
    top: 0;
>>>>>>> d427fe4957349cb4d3ef4f92e8fa1e56bd4d01d4
    &:before {
      content: '';
      position: absolute;
      z-index: 0;
      bottom: -10px;
      height: 40px;
      width: 50px;
      left: -27px;
      border-bottom-left-radius: 100% 100%;
      box-shadow: 38px 9px 0 -9px #fff inset; 
    }
    &:after {
      content: '';
      position: absolute;
      z-index: 0;
      bottom: -10px;
      height: 40px;
      width: 50px;
      right: -28px;
      border-bottom-right-radius: 100% 100%;
      box-shadow: -38px 9px 0 -9px #fff inset;
    }
<<<<<<< HEAD
=======
    a {
      color: #fff;
    }
>>>>>>> d427fe4957349cb4d3ef4f92e8fa1e56bd4d01d4
  }
}
#header .nav-container {
  width: 700px;
  max-width: 33.333%;
  .nav-item {
    height: 125px;
    color: #1d1d1d;
    text-align: center;
<<<<<<< HEAD
=======
    margin-right: 5px;
>>>>>>> d427fe4957349cb4d3ef4f92e8fa1e56bd4d01d4
    &:hover {
      background: #193d84;
      color: #fff;
      z-index: 999999;
    }
    a {
      display: inline-block;
      text-decoration: none;
      font-size: 16px;
      border: none;
      color: inherit;
      margin-top: 70px;
    }
    &.active {
      background: #193d84;
      color: #ffffff;
    }
  }
}

#footer {
  .bg-image('../images/footer.jpg');
  .nav-container {
    align-self:center;
    div {
      &:last-of-type {
        border-right: none;
      }
      border-right: 1px solid #fff;
      ul {
        margin: 0;
        padding: 0;
        .flex-direction(vertical, column);
        li {
          list-style: none;
          a{
            color: #fff;
            display: block;
            text-decoration: none;
            text-align: center;
            font-size: 14px;
          }
          .flex-value(1);
       }
      }
    }
  }
}

@media screen and (max-width: 768px)  {
  #header {
   .logo {
     display: none;
   }
   .nav-container {
     max-width: 100% !important;
   }
  }
}

#footer{
  padding:1% 4%;
  .center(center, space-around);
  .logo {
  margin-top: 9px;
  max-width: 320px;
  }
  .nav-container {
     width: 700px;
     max-width: 33.333%;
     .u-1of2 {
      a {
        text-align: left;
        padding-left: 25px;
      }
     }
     .Grid {
      width: 100%;
      .center(center,space-between);
      li {
        margin-bottom: 0.5em;
        &:last-of-type {
          margin-bottom: 0;
        }
      }
     }
  }
}
@media screen and (min-width: 768px) {
  main.HolyGrail-body {
      -webkit-box-orient: vertical; 
     -webkit-box-direction: normal; 
    -webkit-flex-direction: column; 
    -ms-flex-direction: column;
    flex-direction: column; 
  }
}
@media screen and (min-width: 768px) and (max-width: 1120px) {
  #box {
    flex-wrap: wrap !important;
    #login-panel, #monitor-panel {
      max-width: 45%;
    }
  }
}

#box {
  padding: 2% 10%;
  .flex();
  .flex-direction(horizontal, row);
  .position(space-between, center);
  #login-panel {
    width: 30%;
    margin: 0 10px;
    .form-control {
<<<<<<< HEAD
       width: 100%;
      height: 30px;
      margin-top: 10px;
      border: 1px solid #ddd;
      border-radius: 3px;
       &:last-of-type {
        width: 100%;
        border: none;
        input {
          padding-left: 10px;
          width: 55%;
          border: 1px solid #ddd;
          border-radius: 5px;
        }
      }
=======
      width: 100%;
      height: 30px;
      margin-bottom: 30px;
>>>>>>> d427fe4957349cb4d3ef4f92e8fa1e56bd4d01d4
      .captcha {
        display: inline-block;
        width: 30%;
        height: 100%;
        float: right;
      }
      input {
        width: 100%;
        height: 100%;
        padding-left: 10px;
<<<<<<< HEAD
        outline: none;
        border: 1px solid #ddd;
        color: #1d1d1d;
        border:none;
=======
        border: 1px solid #ddd;
        border-radius: 5px;
        color: #1d1d1d;
        outline: none;
>>>>>>> d427fe4957349cb4d3ef4f92e8fa1e56bd4d01d4
        font-size: 14px;
      }
    }
    .panel-bottom {
      margin-top: 15px;
      span {
        margin-top: 10px;
        font-size: 12px;
        float: left;
      }
      input[type="submit"]{
        background-color: #27469c;
        border:none;
        color: #fff;
        width: 30%;
        padding:10px 0;
        border-radius: 5px;
        float: right;
        outline: none;
      }
    }
  }
  #monitor-panel {
    /*.flex-value(1);*/
    width: 30%;
    margin:0 10px;
    .list-block {
      .flex();
      .position(space-between,justify);
      padding: 25px 10px;
      margin-bottom: 15px;
      color: #fff;
      text-align: justify;
      font-weight: bolder;
      font-size: 18px;
      background: @blue;
    }
  }
  #province-panel {
    /*.flex-value(1);*/
    margin: 0px 10px;
    width: 30%;
    ul {
      margin: 0;
      padding: 0;
      li{
        list-style: none;
        margin-bottom: 15px;
        .flex();
        .flex-direction(horizontal,row);
        .position(space-between, justify);
        &:last-of-type {
          margin-bottom: 0;
        }
        div {
          .flex();
          .flex-direction(horizontal,row);
          .position(space-between, justify);
          .thumb-container {
            display: block;
            width: 120px;
            height: 75px;
          }
          span {padding-left:5px;line-height: 54px}
        }
      }
    }
  }
}
#foot {
  padding: 2% 10%;
  .foot-container {
    .flex();
    .flex-direction(horizontal,row);
    .position(space-between,center);
    margin: 15px 0 25px 0; 
    .friend-link {
      padding: 10px 10px;
      border: 1px solid #999;
      flex-wrap: wrap;
      text-align: center;
      font-weight: bold;
      margin: 3px;
    }
  }
}

.login-button {
  padding: 2px 25px;
  border-radius: 3px;
  height: 30px;
  line-height: 30px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: @blue;
  position: absolute;
  right: 0;
}

.captcha {
  width: 40% !important;
}

label {
  font-size: 12px;
  color: #1d1d1d;
  display: inline-block;
  margin-top: 10px;
}
i {
  margin-right: 8px;
}
.border {
  list-style: none;
  margin: 0;
  padding: 0;
  &:after {
    display: block;
    content: '';
    clear: both;
  }
  .before {
    display: block;
    background: #193d84;
    width: 35px;
    margin: 8px 10px 0 0;
    height: 5px;
    float: left;
  }
  .center {
    float: left;
    display: inline-block;
    color: #ddd;
    margin-bottom: 10px;
  }
  .after {
    margin:9px 0 2px 15px;
    width: 163px;
    content: '';
    display: inline-block;
    height: 2px;
    background: #ddd;
    float: left;
  }
}

.name {
  color: @blue;
  font-size: 18px;
  font-weight: bolder;
  display: block;
  width:120px;
}